import request from '@/utils/request'

// 查询年度店铺销售列表
export function listBiShopSaleYear(query) {
  return request({
    url: '/sale/BiShopSaleYear/list',
    method: 'get',
    params: query
  })
}

// 查询年度店铺销售详细
export function getBiShopSaleYear(id) {
  return request({
    url: '/sale/BiShopSaleYear/' + id,
    method: 'get'
  })
}
// 查询月度店铺销售列表
export function synData(query) {
  return request({
    url: '/sale/BiShopSaleYear/synData',
    method: 'get',
    params: query
  })
}
// 新增年度店铺销售
export function addBiShopSaleYear(data) {
  return request({
    url: '/sale/BiShopSaleYear',
    method: 'post',
    data: data
  })
}

// 修改年度店铺销售
export function updateBiShopSaleYear(data) {
  return request({
    url: '/sale/BiShopSaleYear',
    method: 'put',
    data: data
  })
}

// 删除年度店铺销售
export function delBiShopSaleYear(id) {
  return request({
    url: '/sale/BiShopSaleYear/' + id,
    method: 'delete'
  })
}
